<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>0414</title>
    <script src="js/vue.js"></script>
</head>

<body>
    <div id="app">
        <!-- 双分支结构 -->
        <div v-if="flag">Yes</div>
        <div v-else>No</div>

        <div v-if="grade>=90">优秀</div>
        <div v-else-if="grade>=70">中等</div>
        <div v-else-if="grade>=60">及格</div>
        <div v-else>不及格</div>
    </div>
    <script>
        var vm = new Vue({
            el: "#app",
            data: {
                flag: true,
                grade: 75
            }
        })
    </script>
</body>

</html>